{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 系统重置\n",
    "1. 当系统的用户账号使用完了以后,若要给新的interviewer使用,需要重新进行一些设置\n",
    "1. 本质就是删除之前的interviewer的记录,同时该系统还能继续工作"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 设置步骤\n",
    "1. 文件夹资料恢复初始状态\n",
    "    1. 整理一个初始的文件夹\n",
    "    1. 循环复制150份(因为李美杰有150个账号),Files文件夹下有Python代码可以使用\n",
    "    1. 修改文件的权限为`www-data`\n",
    "1. 数据库记录删除\n",
    "    1. 删除的数据是用户做题的记录信息,保存在\n",
    "    1. mysql用户信息:\n",
    "        1. `user:`iroan,`password:`iroanMYS_47\n",
    "        1. `user:`root,`password:`dpl_root\n",
    "    1. 步骤:\n",
    "        1. 登录,`mysql -u iroan -p` or `mysql -u root -p`\n",
    "        1. 选择要操作的数据库,`use label1`\n",
    "        1. 操作数据:\n",
    "            1. show tables;\n",
    "            1. select * from zzxs_ftr;\n",
    "            1. delete from zzxs_ftr;(需要管理员权限)         \n",
    "            1. desc user;\n",
    "1. 修改各个interviewer的密码(出于安全考虑)\n",
    "    1. 写个Python代码读取interviewer密码,再在此密码上加上一些字符组成新的密码"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
